<template>
  <div class="container">
    <van-nav-bar left-text="返回" left-arrow @click-left="back" />
    <div v-html="zixun.content"></div>
  </div>
</template>

<script>
import { loadadetail } from "../services/zixun";
export default {
  data() {
    return {
      zixun: [],
    };
  },
  async created() {
    const res = await loadadetail(this.$route.query.id);
    console.log(res.data);
    this.zixun = res.data;
    this.amount = Math.floor(Math.random() * 100);
  },
  methods: {
    back() {
      window.history.go(-1);
    },
  },
};
</script>

<style>
</style>